<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Travel Dream - Home</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<div id="maincontainer">
  <div id="menu">
    <div>
    	<ul style="display:block;list-style-type:none;">
    		<li><a href="home.xhtml">HOME</a></li>
    		<li><a href="search package.xhtml">RICERCA PACCHETTO</a></li>
    		<li><a href="search component.xhtml">RICERCA COMPONENTE</a></li>
    	</ul>
    </div>
  </div>
  <div id="right_column">
<p:tabView id="tabView" var="roomc" value="#{RoomMgr.currentList}">  
  
    <p:tab id="roomcTab" title="#{roomc.hotelName}">  
        <h:panelGrid columns="2" cellpadding="10">  
  
           <p:dataGrid var="room" value="#{roomc.hotelRoomList}" columns="4" rows="10" >
             		<p:column>
             			 <h:panelGrid columns="2">
						            <h:outputLabel id="roomNumber" for="roomNumber" value="Numero:" />
						            <h:outputText id="roomNumber" value="#{room.roomNumber}" />
						            <h:outputLabel id="beds" for="beds" value="Posti Letto:" />
						            <h:outputText id="beds" value="#{room.beds}" />
						            <h:outputLabel id="price" for="price" value="Prezzo:" />
						            <h:outputText id="price" value="#{room.price}" />
						            <h:outputLabel id="available" for="available" value="Disponibile:" />
						            <h:outputText id="available" value="#{room.available}" />
						   </h:panelGrid>
						</p:column>	
                	</p:dataGrid>
        </h:panelGrid>  
    </p:tab>  
</p:tabView>
</div>
</div>        
</h:body>
</html>
